#ifndef MYTCPCLIENT_H
#define MYTCPCLIENT_H
#include"iostream"
#include"QtNetwork"

class MyTcpClient:public QObject
{
public:
    MyTcpClient(QObject* clientWindow,std::string _ip,int _port);
    ~MyTcpClient();
    void connectServer();
    void disconnectServer();
    void sendMsgToServer(std::string message);
private:
    std::string ip;
    int port;
    QTcpSocket* clientSocket;

public slots:
    void readData() ;
};

#endif // MYTCPCLIENT_H
